package com.lening.provider.controller.VisitorInvitation;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseController;
import com.lening.provider.dto.VisitorInvitation.VisitorInvitationMainTableDTO;
import com.lening.provider.po.VisitorInvitation.VisitorInvitationMainTablePO;
import com.lening.provider.service.VisitorInvitation.VisitorInvitationMainTableService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * @author 刘政华
 * @datetime 2024/6/5 14:15
 * @description 类对象
 */
@Slf4j
@RestController
@RequestMapping("visitorInvitationMainTables")
public class VisitorInvitationMainTableController extends BaseController<VisitorInvitationMainTablePO, VisitorInvitationMainTableDTO, VisitorInvitationMainTableService> {

    @Autowired(required = false)
    private WebClient webClient;

    @Autowired
    private VisitorInvitationMainTableService visitorInvitationMainTableService;

    @Override
    public Page<?> page(VisitorInvitationMainTableDTO visitorInvitationMainTableDTO) {
        return visitorInvitationMainTableService.visitorList(visitorInvitationMainTableDTO);
    }
}
